import React from 'react';
import {QuestionInputDefaultProps, QuestionInputPropsType} from "./interface";
import {Input, Typography} from "antd";

const {Paragraph} = Typography
const QuestionInput: React.FC<QuestionInputPropsType> = (props: QuestionInputPropsType) => {
  const {title = '', placeholder = ''} = {...QuestionInputDefaultProps, ...props}
  return (
    <div>
      <Paragraph strong={true}>{title}</Paragraph>
      <div>
        <Input placeholder={placeholder}/>
      </div>
    </div>
  );
};

export default QuestionInput;
